#!/bin/bash

erlc *.erl

xterm -geometry 60x10+0+0 -bg white -fg black -e erl -setcookie apa -name node -s node start &


xterm -geometry 60x10+0+200 -bg white -fg black -e erl -setcookie apa -name node1 -s node start_join node@$(hostname) &
xterm -geometry 60x10+0+400 -bg white -fg black -e erl -setcookie apa -name node2 -s node start_join node@$(hostname) &
xterm -geometry 60x10+0+600 -bg white -fg black -e erl -setcookie apa -name node3 -s node start_join node@$(hostname) &

xterm -geometry 60x70-0+0 -bg white -fg black -e erl -setcookie apa -name command -s node start_join node@$(hostname) &
